package cn.accp.mvc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.accp.mvc.dao.UsersDao;
import cn.accp.mvc.entity.Users;
import cn.accp.mvc.service.UsersService;
@Service("usersService")
public class UsersServiceImpl implements UsersService {
	@Autowired
	private UsersDao usersDao;
	public void setUsersDao(UsersDao usersDao) {
		this.usersDao = usersDao;
	}
	@Override
	public boolean regs(Users users) {
		return usersDao.regs(users);
	}

	@Override
	public Users login(Users users) {
		return usersDao.login(users);
	}
	@Override
	public String regsName(String name) {
		return usersDao.regsName(name);
	}

}
